package com.example.tianling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tianling.entity.RoomEntity;
import com.example.tianling.entity.RoomUserEntity;
import com.example.tianling.entity.UserEntity;

import java.util.List;

public interface RoomUserService extends IService<RoomUserEntity> {
    // 房间内相关
    List<RoomUserEntity> getRoomUserList(Integer roomId);
    void insertRoomUser(RoomUserEntity roomUser);
    void removeUserByUserId(Integer userId);
    void updateUserState(String userId, int userState);
    void removeUserByRoomId(Integer roomId);
    RoomUserEntity checkRoomUser(Integer roomId, Integer userId);


    void insertRoomUser(Integer roomId, UserEntity user);

}
